package activity.myrecyclerview;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.widget.ImageView;

import com.imgUtil.BitmapUtil;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

/**
 * Created by Administrator on 2016/1/23.
 */
@EActivity(R.layout.item_card_view)
public class CardViewActivity extends Activity {
    @ViewById(R.id.img)
    public ImageView phone;
    @ViewById(R.id.textimg)
    public ImageView textimg;
    @AfterViews
    public void init(){
        //Bitmap bit=new BitmapUtil().imageZoom(BitmapFactory.decodeResource(this.getResources(), R.mipmap.a3));
       // phone.setImageBitmap(bit);
        Bitmap bit=new BitmapUtil().imageZoom(BitmapFactory.decodeResource(this.getResources(), R.mipmap.a3));
        textimg.setImageBitmap(bit);

    }
}
